package com.syb.dao.impl;

import org.springframework.stereotype.Repository;

import com.syb.dao.RelResourcesRoleDao;
import com.syb.util.BaseDao;

@Repository
public class RelResourcesRoleImpl extends BaseDao implements RelResourcesRoleDao{

	@Override
	public void delRelResoucesRole(Integer resourceId) throws Exception {
		String sql = "delete from  rel_sys_role_resource where rel_sys_resource_id = ?";
		try{
			this.getSessionFactory().getCurrentSession().createSQLQuery(sql).setParameter(0, resourceId).executeUpdate();
		}catch(Exception e){
			throw new Exception(e.getMessage());
		}
		
	}

}
